using Magic.Oidc.AuthorizatonServer.Models;
using Microsoft.EntityFrameworkCore;

namespace Magic.Oidc.AuthorizatonServer
{
    public class ApplicationDbContext : DbContext
    {
        public DbSet<User> Users { get; set; }
        public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
        {
            
        }

        public ApplicationDbContext() { }
        protected override void OnConfiguring(DbContextOptionsBuilder options)
        => options.UseNpgsql("你的pgsql连接串");
    }
}